﻿using ProjScan.RecordManager;
using ProjScan.RecordManager.AssetData;
using ProjScan.ScanRule.Attr;
using UnityEditor;

namespace ProjScan.ScanRule.ProjectAssets.Animation
{
    [AnimationRuleAttr]
    internal class AnimationClip_ResampleCurve : RecordRuleImp<AnimationClipAssetData, AnimationClipRecordManager>
    {
        protected override bool IsOK(AnimationClipAssetData assetData)
        {
            return assetData.noImporter || assetData.animationType == ModelImporterAnimationType.Legacy || assetData.animationType == ModelImporterAnimationType.Human || !assetData.resampleCurves;
        }
    }
}